package com.coke.spring.sentinel.common;


import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author cwm
 * @Description TODO
 * @date 2021/9/2 上午9:56
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@ToString
public class Node {
    /**
     * 起始时间
     */
    private long time;
    /**
     * 调用计数器
     */
    private long counter;
    /**
     * 下一个节点
     */
    private Node next;

    private int id;

    public Node(long time, long counter, int id) {
        this.time = time;
        this.counter = counter;
        this.id = id;
    }

    public Node(Node next) {
        this.next = next;
    }
}
